<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

/**
 * login controller.
 */
class login_controller extends CI_Controller{

	function __construct(){
	   parent::__construct();
	 }
	
	 
	public function index(){
		$cI = get_instance();
		$cI->load->library('Session');
		if ($cI->session->userdata('logged_in')) {
			redirect('index.php/admin', 'refresh');
		}else{
		   $this->load->helper(array('form', 'url'));  
		   $this->load->view('login/login'); 
		} 
	 }
 
	
}